from django.shortcuts import render
from django.conf.urls import url, include
from django.contrib.auth.models import User
from rest_framework import routers, serializers, viewsets
from rest_framework import permissions
from ..models.Cliente import Cliente


class ClienteSerializer(serializers.ModelSerializer):

    class Meta:
        model = Cliente
        #fields = ('nombre_residencia', 'num_habitacion', 'telefono','descripcion','direccion')


class ClienteViewSet(viewsets.ModelViewSet):  # API REST
    queryset = Cliente.objects.filter()
    serializer_class = ClienteSerializer
    # permission_classes = [permissions.IsAuthenticated]
